<?php
/**
 * Created by PhpStorm.
 * User: 李闯
 * Date: 2020/7/10
 * Time: 9:46
 * Content: 方法
 */
/**
 * @param $level
 * @return mixed
 * @content 用户等级
 */
function getMemberLevel($level){
    if($level == 'level1'){
        $member_level =1;
    }else if($level == 'level2'){
        $member_level =2;

    }else if($level == 'level3'){
        $member_level =3;

    }else if($level == 'level4'){
        $member_level =4;

    }else if($level == 'level5'){
        $member_level =5;

    }else if($level == 'level6'){
        $member_level =6;

    }else if($level == 'level7'){
        $member_level =7;

    }else if($level == 'level8'){
        $member_level =8;

    }else if($level == 'level9'){
        $member_level =9;

    }else if($level == 'level10'){
        $member_level =10;

    }else if($level == 'level11'){
        $member_level =11;

    }else if($level == 'level12'){
        $member_level =12;

    }else{
        $member_level =0;
    }
    return $member_level;

}